﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Runtime.Serialization;

namespace FinApp.Model {

    /// { "checkField": "9ZDzYlDYsryZqmvRdxaRfODOclChnVcvD241jTnnwhU=", "quantity": 18.0, "currency": "EURO", "commerceId": "508b1a1de4b04a375aa94c4c" }

    [DataContract]
    public class PaymentModel {

        #region Members
        private string checkField;
        private double quantity;
        private string currency;
        private string commerceId;
        #endregion

        #region Properties
        /// <summary>
        /// Obtiene o establece el campo encriptado para la posterior decodificación
        /// </summary>
        [DataMember(Name = "checkField")]
        public string CheckField {
            get { return checkField; }
            set { checkField = value; }
        }
        /// <summary>
        /// Obtiene o establece la cantidad del pago
        /// </summary>
        [DataMember(Name = "quantity")]
        public double Quantity {
            get { return quantity; }
            set { quantity = value; }
        }
        /// <summary>
        /// Obtiene o establece la moneda del pago
        /// </summary>
        [DataMember(Name = "currency")]
        public string Currency {
            get { return currency; }
            set { currency = value; }
        }
        /// <summary>
        /// Obtiene o establece el identificador del comercio
        /// </summary>
        [DataMember(Name = "commerceId")]
        public string CommerceId {
            get { return commerceId; }
            set { commerceId = value; }
        } 
        #endregion

    }
}
